<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    {if $admin.is_pingtai==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">所属运营区:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-area_id" data-rule="required" data-source="vppz/area/index" class="form-control selectpage" name="row[area_id]" type="text" value="{$row.area_id|htmlentities}">
        </div>
    </div>
    {/if}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">企业名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">企业法人:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-faren" data-rule="required" class="form-control" name="row[faren]" type="text" value="{$row.faren|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">法人身份证号:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-idcard" data-rule="required" class="form-control" name="row[idcard]" type="text" value="{$row.idcard|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">联系人:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-connectname" data-rule="required" class="form-control" name="row[connectname]" type="text" value="{$row.connectname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">联系电话:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phone" data-rule="required" class="form-control" name="row[phone]" type="text" value="{$row.phone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">营业执照:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-yingyezhizhao" data-rule="required" class="form-control" size="50" name="row[yingyezhizhao]" type="text" value="{$row.yingyezhizhao|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-yingyezhizhao" class="btn btn-danger faupload" data-input-id="c-yingyezhizhao" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-yingyezhizhao"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-yingyezhizhao" class="btn btn-primary fachoose" data-input-id="c-yingyezhizhao" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-yingyezhizhao"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-yingyezhizhao"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">企业Logo:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-logo" data-rule="required" class="form-control" size="50" name="row[logo]" type="text" value="{$row.logo|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-logo" class="btn btn-danger faupload" data-input-id="c-logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-logo"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-logo" class="btn btn-primary fachoose" data-input-id="c-logo" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-logo"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-logo"></ul>
        </div>
    </div>

	<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">企业简介:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-info" data-rule="required" class="form-control " rows="5" name="row[info]" cols="50">{$row.info|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">所在区域:</label>
            <div class="col-xs-12 col-sm-8">
                <div class='control-relative'><input id="c-city" data-rule="required" class="form-control" data-toggle="city-picker" name="row[city]" type="text" value="{$row.province|htmlentities}/{$row.city|htmlentities}/{$row.district|htmlentities}"></div>
            </div>
        </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">企业位置:</label>
        <div class="col-xs-12 col-sm-8">
			<div class="input-group">
				<div class="input-group-addon">经度</div>
				<input id="c-lng" data-rule="required" class="form-control" name="row[lng]" type="number" value="{$row.lng|htmlentities}" value="{$row.lng|htmlentities}">
				<div class="input-group-addon">纬度</div>
                <input id="c-lat" data-rule="required" class="form-control"  name="row[lat]" type="number" value="{$row.lat|htmlentities}" value="{$row.lat|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" class="btn btn-primary" data-input-id="c-address" data-toggle="addresspicker" data-lat-id="c-lat" data-lng-id="c-lng"><i class="fa fa-map-marker"></i> 选择位置</button></span>
                </div>
            </div>
        </div>
    </div>

	<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">详细地址:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" data-rule="required" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">企业详情:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
        </div>
    </div>
{if $admin.is_pingtai == 1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">权重排序:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="{$row.weigh}">
        </div>
    </div>
{/if}
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
